package edu.fiu.cis.personalize.server.graph.update;

import edu.fiu.cis.personalize.server.graph.Group;
import edu.fiu.cis.personalize.server.graph.NodeType;
import edu.fiu.cis.personalize.server.graph.User;

public class GroupUserUpdate extends GraphUpdate<Group, User>{

	@Override
	protected double computeWeight(Group g, User u) {
		return g.hasMember(u)?1:0;
	}

	@Override
	NodeType type1() {
		return NodeType.GROUP;
	}

	@Override
	NodeType type2() {
		return NodeType.USER;
	}

}
